import request from '@/utils/request'

// 查询班级成绩录入列表
export function listClassScore(grade, schoolId, classs) {
  return request({
    url: `/classscoreonmonth/classscoreonmonth/listByTeacher/${grade}/${schoolId}/${classs}`,
    method: 'get'
  })
}

export function listStudentScore(userName) {
  return request({
    url: `/classscoreonmonth/classscoreonmonth/StudentlistByUserName/${userName}`,
    method: 'get'
  })
}

// 根据学生学号查询姓名
export function getStudentName(studentId) {
  return request({
    url: '/students/students/getStudentName/' + studentId,
    method: 'get'
  })
}

// 根据老师id获取其同学的薄弱项
export function getWeakness(teacherId, time) {
  return request({
    url: `/StrengthsWeaknesses/StrengthsWeaknesses/genList/${teacherId}/${time}`,
    method: 'get'
  })
}

// 触发强弱项
export function triggerWeakness(data) {
  return request({
    url: `/StrengthsWeaknesses/StrengthsWeaknesses/gen`,
    method: 'get',
    params:data
  })
}